package com.lanhai.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Suser entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@SuppressWarnings("unchecked")
public class Suser implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 5978129685070594993L;
	private Integer id;
	private Suser suser;
	private String username;
	private String password;
	private String nickname;
	private Date createtime;
	private Boolean enable;
	private Integer level;
	private Set sdevices = new HashSet(0);
	private Set susers = new HashSet(0);

	// Constructors

	/** default constructor */
	public Suser() {
	}

	/** minimal constructor */
	public Suser(String username, String password, Boolean enable, Integer level) {
		this.username = username;
		this.password = password;
		this.enable = enable;
		this.level = level;
	}


	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Suser getSuser() {
		return this.suser;
	}

	public void setSuser(Suser suser) {
		this.suser = suser;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Set getSdevices() {
		return this.sdevices;
	}

	public void setSdevices(Set sdevices) {
		this.sdevices = sdevices;
	}

	public Set getSusers() {
		return this.susers;
	}

	public void setSusers(Set susers) {
		this.susers = susers;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
}